package org.example.service;

import org.springframework.transaction.annotation.Transactional;

import java.io.IOException;

public interface ResourcesService {


    /**
     * 保证2个操作都是正确的才会业务执行
     * */
    //@Transactional(rollbackFor = IOException.class) //报错异常IOE会出现不会回滚，加上这个就会回滚
    @Transactional
    void transfer(Integer outId,Integer inId ,Integer moeny);

}
